<?php

require_once dirname(__FILE__) . '/../lib/ct_documento_comentarioGeneratorConfiguration.class.php';
require_once dirname(__FILE__) . '/../lib/ct_documento_comentarioGeneratorHelper.class.php';

/**
 * ct_documento_comentario actions.
 *
 * @package    ingenyo-biblio
 * @subpackage ct_documento_comentario
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
 */
class ct_documento_comentarioActions extends autoCt_documento_comentarioActions
{

  public function executeIndex(sfWebRequest $request)
  {
    parent::executeIndex($request);
    $this->pager->setCriteria(CtDocumentoComentarioPeer::getComentariosByDocumentoCriteria($this->getUser()->getAttribute('id_documento')));
    $this->pager->init();
    $this->setLayout('layout_iframe');

  }

  public function executeEdit(sfWebRequest $request)
  {
    parent::executeEdit($request);
    $this->setLayout('layout_iframe');
  }
  
  public function executePenalizarPersona(sfWebRequest $request){
    $comentario = $this->getRoute()->getObject();
    var_dump($comentario);die();
    
  }
}
